﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebService.BusinessEntities
{
    /// <summary>
    /// Encja historii gry oraz zapisu stanu konta gracza
    /// po stronie debetu oraz kredytu
    /// </summary>
    public partial class GameHistoryWallet : GameHistory
    {
        public GameHistoryWallet()
        {
        }

        /// <summary>
        /// Konstruktor parametrowy encji historii gry z zapisem konta gracza
        /// </summary>
        /// <param name="completion_date">Data ukonczenia gry</param>
        /// <param name="game_id">ID gry</param>
        /// <param name="room_name">Nazwa pokoju</param>
        /// <param name="start_date">Data rozpoczecia gry</param>
        /// <param name="type">Typ zagranej gry</param>
        /// <param name="credit">Kredyt gracza w grze</param>
        /// <param name="debit">Debet gracza w gzre</param>
        public GameHistoryWallet(System.DateTime completion_date, System.Int32 game_id,
            System.String room_name, System.DateTime start_date, System.String type,
            System.Int32 credit, System.Int32 debit)
        {
            base.completion_date = completion_date;
            base.game_id = game_id;
            base.room_name = room_name;
            base.start_date = start_date;
            base.type = type;
            this.creditField = credit;
            this.debitField = debit;
        }
        
        private System.Int32 creditField;
        /// <summary>
        /// Kredyt gracza w danej grze
        /// </summary>
        public System.Int32 credit
        {
            get { return this.creditField; }
            set { this.creditField = value; }
        }
        
        private System.Int32 debitField;
        /// <summary>
        /// Debet gracza w danej grze
        /// </summary>
        public System.Int32 debit
        {
            get { return this.debitField; }
            set { this.debitField = value; }
        }
    }
}

